package com.market.dao.jpa;

import org.springframework.stereotype.Repository;

import com.market.dao.ProductInfoDao;
import com.market.domain.ProductInfo;
@Repository("productInfoDao")
public class ProductInfoDaoJpa extends GenericDaoJpa<ProductInfo, Long> implements
		ProductInfoDao {
	
	public ProductInfoDaoJpa(){
		super(ProductInfo.class);
	}

	public void remove(ProductInfo object) {
		if (super.findById(object.getId()) == null) {
			log.debug(this.getClass() + " ProductInfo with id " + object.getId()
					+ " can not be found, can not be delete ");
		} else {
			super.removeById(object.getId());
			log.debug(this.getClass() + " ProductInfo with id " + object.getId()
					+ " is found, will be deleted");
		}
		
	}

	

}
